package timer

/*
 * timer manager wrap.
 */
import (
	timer "myTimer"
)

const (
	gTimerGranularityMS = 50 // unit:ms
)

type timerMgr struct {
	timer.ITimerWrapper
}

// Init initializes the timer manager.
func (tm *timerMgr) Init() {
	tm.ITimerWrapper = timer.NewTimerWrapper(gTimerGranularityMS)
}

// GetTimer gets timer register.
func (tm *timerMgr) GetTimer() timer.IRegister {
	return tm.GetRegister()
}

var TimerMgrObj timerMgr
